package org.artifact.core;

import java.io.File;

import org.artifact.core.util.ProtoUtil;

/**
 * Hello world!
 *
 */
public class App 
{
	/** proto文件路径 */
	static final String INPUT_PATH = System.getProperty("user.dir") + File.separator + "proto";

	/** 生成的java文件路径 */
	static final String OUTPUT_PATH = System.getProperty("user.dir") + File.separator + "src/main/java";

	/** protoc.exe 路径 */
	static final String EXE_FILE = System.getProperty("user.dir") + File.separator + "proto/protoc.exe";
	
    public static void main( String[] args )
    {
    	ProtoUtil.builder().inputPath(INPUT_PATH).outputPath(OUTPUT_PATH).exeFile(EXE_FILE).build().exec();
    }
}
